[t:/]$ 지식_

리눅서용 허리통증탈출 뽀모도로, linux notify 프로그래밍

2015/04/09

만성 허리 통증이 있는 리눅서는 3-40분마다 자리에서 일어나는 것이 좋습니다.

watch -n2400 'notify-send "쉬어라!" "허리를 펴라!" --icon=dialog-information'

rc에 넣어두면 40분마다 팝업 떠요...

뽀모도로로로로테크닉.

notify 프로그래밍.. 이거 재밌을 듯..

https://wiki.archlinux.org/index.php/Desktop_notifications

hello_world.c
#include <libnotify/notify.h>

void main () {

    notify_init ("Hello world!");
    NotifyNotification * Hello = notify_notification_new ("Hello world", "This is an example notification.", "dialog-information");
    notify_notification_show (Hello, NULL);
    g_object_unref(G_OBJECT(Hello));
    notify_uninit();
}








[t:/] is not "technology - root". dawnsea, rss